package com.ls.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>shiro redis config</p>
 * Created by zhezhiyong@163.com on 2017/2/22.
 */
@Configuration
@ConfigurationProperties(prefix = "shiro.redis")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShiroRedisProperties {

    private int database = 0;

    private String hostName = "localhost";

    private String password;

    private int port = 6379;

    private int timeout;

    private int expire = 1800;
}